package com.atbun.eduservice.service;

import com.atbun.eduservice.entity.EduChapter;
import com.atbun.eduservice.entity.vo.ChapterVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 章节 服务类
 * </p>
 *
 * @author testjava
 * @since 2020-05-06
 */
public interface EduChapterService extends IService<EduChapter> {
    List<ChapterVo> nestedList(String courseId);

//    根据章节id删除
    boolean removeChapterById(String id);
//根据课程id删除章节，小节
    boolean deleteChapterByCourseId(String courseId);
}
